<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:v="http://corejsf.com/validator">

<f:view>
<f:loadBundle var="text" basename="#{qxxxForm.bundleName}"/>
    <head>
        <title>#{text['qxxxDetail.title']}</title>
        <meta name="heading" content="#{text['qxxxDetail.heading']}"/>
        <style type="text/css">
            .jscalendar-DB-div-style {
                position: absolute;
                margin-top: -120px;
                margin-left: -508px;
            }
    </style>
    </head>
<body id="qxxxForm">

<h:form id="qxxxForm" onsubmit="return validateQxxxForm(this)">
<h:inputHidden value="#{qxxxForm.qxxx.id}" id="id"/>
<h:inputHidden value="#{qxxxForm.qxxx.version}" id="version"/>
 <h:panelGroup styleClass="buttonBar bottom">
        <h:commandButton value="#{text['button.save']}" action="#{qxxxForm.save}" id="save" styleClass="button"/>

        <c:if test="${not empty qxxxForm.qxxx.id}">
        <h:commandButton value="#{text['button.delete']}" action="#{qxxxForm.delete}"
            id="delete" styleClass="button" onclick="bCancel=true; return confirmDelete('Qxxx')"/>
        </c:if>

        <h:commandButton value="#{text['button.cancel']}" action="cancel" immediate="true"
            id="cancel" styleClass="button" onclick="bCancel=true"/>
    </h:panelGroup>

<h:panelGrid columns="3">

    <h:outputLabel styleClass="desc" for="bs" value="#{text['qxxx.bs']}"/>
    <t:message for="bs" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="bs" value="#{qxxxForm.qxxx.bs}" required="true" maxlength="255">
        <v:commonsValidator type="required" arg="#{text['qxxx.bs']}"/>
    </h:inputText>
    
    <h:outputLabel styleClass="desc" for="je" value="#{text['qxxx.je']}"/>
    <t:message for="je" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="je" value="#{qxxxForm.qxxx.je}" required="true" maxlength="255">
        <v:commonsValidator type="required" arg="#{text['qxxx.je']}"/>
    </h:inputText>
    
    <h:outputLabel styleClass="desc" for="qxsj" value="#{text['qxxx.qxsj']}"/>
    <t:message for="qxsj" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="qxsj" value="#{qxxxForm.qxxx.qxsj}" required="false" maxlength="50">
    </h:inputText>
    
     <h:outputLabel styleClass="desc" for="jbh" value="#{text['qxxx.jbh']}"/>
    <t:message for="jbh" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="jbh" value="#{qxxxForm.qxxx.jbh}" required="true" maxlength="100">
        <v:commonsValidator type="required" arg="#{text['qxxx.jbh']}"/>
    </h:inputText>
    <!-- 
    <h:outputLabel styleClass="desc" for="id" value="#{text['qxxx.id']}"/>
    <t:message for="id" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="id" value="#{qxxxForm.qxxx.id}" required="true">
        <v:commonsValidator type="required" arg="#{text['qxxx.id']}"/>
    </h:inputText>
    
    <h:outputLabel styleClass="desc" for="bz" value="#{text['qxxx.bz']}"/>
    <t:message for="bz" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="bz" value="#{qxxxForm.qxxx.bz}" required="false" maxlength="100">
    </h:inputText>
   
    <h:outputLabel styleClass="desc" for="operation" value="#{text['qxxx.operation']}"/>
    <t:message for="operation" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="operation" value="#{qxxxForm.qxxx.operation}" required="false" maxlength="20">
    </h:inputText>
    
    <h:outputLabel styleClass="desc" for="optdate" value="#{text['qxxx.optdate']}"/>
    <t:message for="optdate" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="optdate" value="#{qxxxForm.qxxx.optdate}" required="false" maxlength="23">
    </h:inputText>
    
    <h:outputLabel styleClass="desc" for="username" value="#{text['qxxx.username']}"/>
    <t:message for="username" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="username" value="#{qxxxForm.qxxx.username}" required="false" maxlength="50">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="xh" value="#{text['qxxx.xh']}"/>
    <t:message for="xh" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="xh" value="#{qxxxForm.qxxx.xh}" required="false" maxlength="255">
    </h:inputText>
     -->
</h:panelGrid>
</h:form>

<v:validatorScript functionName="validateQxxxForm"/>

<script type="text/javascript">
    //Form.focusFirstElement($('qxxxForm'));
    highlightFormElements();
</script>

</body>
</f:view>
</html>
